//
//  oldLabel.m
//  laonianbang
//
//  Created by 勇拓 李 on 17/10/10.
//  Copyright © 2017年 zaiyou. All rights reserved.
//

#import "oldLabel.h"

@implementation oldLabel

+ (void)changePlaceholderColor:(UITextField *)textfiled color:(UIColor *)color string:(NSString *)str
{
    NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:str attributes:
                                      @{NSForegroundColorAttributeName:color,
                                        NSFontAttributeName:textfiled.font
                                        }];
    textfiled.attributedPlaceholder = attrString;
}

+ (void)changeLableUnderLine:(UILabel *)label string:(NSString *)string
{
    NSDictionary *attribtDic = @{NSUnderlineStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
    NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:string attributes:attribtDic];
    label.attributedText = attribtStr;
}

@end
